xen.git
20 years agoSwitch most uses of write over to store.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:53:29 +0000 (19:53 +0000)]
Switch most uses of write over to store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoExplicit test for None.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:52:04 +0000 (19:52 +0000)]
Explicit test for None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMore syntactic sugar.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:34:13 +0000 (19:34 +0000)]
More syntactic sugar.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove start_time out of xend dir and use gather/store.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:30:08 +0000 (19:30 +0000)]
Move start_time out of xend dir and use gather/store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSupport removing nodes from store if value to store is None.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:29:25 +0000 (19:29 +0000)]
Support removing nodes from store if value to store is None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd store function.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:22:31 +0000 (19:22 +0000)]
Add store function.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways allow transaction abort.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:17:22 +0000 (19:17 +0000)]
Always allow transaction abort.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd gather function and robustify class methods' failure handling.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 18:24:25 +0000 (18:24 +0000)]
Add gather function and robustify class methods' failure handling.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:37 +0000 (17:06 +0000)]
merge?

20 years agoRename xm commands and cleanup of the "bogus" argument code.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:25 +0000 (17:06 +0000)]
Rename xm commands and cleanup of the "bogus" argument code.
For the "bogus" argument code, avoid changing the argument list so
that errors can be reported consistently.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix xc_make_page_below_4G(). Should fix PAE domain
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:56:05 +0000 (16:56 +0000)]
Fix xc_make_page_below_4G(). Should fix PAE domain
building on >= 4GB systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDuring my attempts to get the latest bridge networking model working on my
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:49:23 +0000 (16:49 +0000)]
During my attempts to get the latest bridge networking model working on my
system, I often invoked 'network-bridge stop' with total failure.  Attached
is an updated version that works.

Signed-off-by: Andrew Theurer <habanero@us.ibm.com>
20 years agoFix xc_domain_memory_decrease_reservation().
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:56:06 +0000 (15:56 +0000)]
Fix xc_domain_memory_decrease_reservation().

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd methods to read/write Vm/Domain store entries.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:47:48 +0000 (15:47 +0000)]
Add methods to read/write Vm/Domain store entries.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove name back into main domain dir.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:25:28 +0000 (15:25 +0000)]
Move name back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove id back into main domain dir and rename to domid.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:10:22 +0000 (15:10 +0000)]
Move id back into main domain dir and rename to domid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 14:43:34 +0000 (14:43 +0000)]
merge?

20 years agoSet NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:50 +0000 (13:37 +0000)]
Set NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
be set, else it will cause "vm-entry failed".

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
20 years agoMove uuid back into main domain dir.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:03 +0000 (13:37 +0000)]
Move uuid back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd some sanity check when creating 3-level 1:1 page table
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:34:14 +0000 (13:34 +0000)]
Add some sanity check when creating 3-level 1:1 page table
in VMX domain builder.
 - Add check for empty l2e page entry.
 - Add check for failed vl1tab map.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
20 years agoClear pending interrupt on shared page when pic initialized
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:28:45 +0000 (13:28 +0000)]
Clear pending interrupt on shared page when pic initialized
and irq base changed.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoGet rid of anonymous unions in public header files.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:13:10 +0000 (13:13 +0000)]
Get rid of anonymous unions in public header files.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoCall dominfo.device_delete instead of non-existant dominfo.device_destroy.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 12:49:13 +0000 (12:49 +0000)]
Call dominfo.device_delete instead of non-existant dominfo.device_destroy.
Signed-off-by: Sean Dague <sean@dague.net>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove unsued domain_controller.h file.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 10:58:00 +0000 (10:58 +0000)]
Remove unsued domain_controller.h file.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix 64-bit build problem. Not allowed to movl between a
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:20:21 +0000 (09:20 +0000)]
Fix 64-bit build problem. Not allowed to movl between a
segment register and a memory location.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove hypervisor.h to asm-i386/asm-x86_64.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:17:44 +0000 (09:17 +0000)]
Move hypervisor.h to asm-i386/asm-x86_64.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomem-map.sxp and vmxloader are unaffected by a 64-bit build,
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:14:32 +0000 (09:14 +0000)]
mem-map.sxp and vmxloader are unaffected by a 64-bit build,
and belong in /usr/lib always (never /usr/lib64). qemu-dm
continues to live under /usr/lib64 on 64-bit systems.
Modify the vmx config script to auto-detect correct path
to qemu-dm, rather than staically configuring at compile
time.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix xenstored watch crash.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 08:41:49 +0000 (08:41 +0000)]
Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't return failure when trying to delete a non-existent node.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:52:24 +0000 (21:52 +0000)]
Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoPerform xenbus operations in shutdown_handler in a transaction.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:29:28 +0000 (21:29 +0000)]
Perform xenbus operations in shutdown_handler in a transaction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't cause watch fire deadlock by unconditionally rewriting the sysrq node.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:24:03 +0000 (21:24 +0000)]
Don't cause watch fire deadlock by unconditionally rewriting the sysrq node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't fail readDB on empty dirs.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:00:13 +0000 (21:00 +0000)]
Don't fail readDB on empty dirs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch shutdown and sysrq to xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 20:54:41 +0000 (20:54 +0000)]
Switch shutdown and sysrq to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFree blkif if vbd_create fails.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:43:58 +0000 (19:43 +0000)]
Free blkif if vbd_create fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix the logic in vcpu_sleep_sync(): we must wait until
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:09:44 +0000 (19:09 +0000)]
Fix the logic in vcpu_sleep_sync(): we must wait until
the running flag is cleared *and* the scheduler lock is
released. Not just one or the other.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoSome more resilience to errors in creating vbds etc; still needs more work
shand@ubuntu.eng.hq.xensource.com [Tue, 13 Sep 2005 18:03:04 +0000 (10:03 -0800)]
Some more resilience to errors in creating vbds etc; still needs more work
to tidy up things properly (e.g. the store state).

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoSwitch memory target handling to use xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:49:38 +0000 (17:49 +0000)]
Switch memory target handling to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agog/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:32:59 +0000 (17:32 +0000)]
g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch vcpu hotplugging to use xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:31:13 +0000 (17:31 +0000)]
Switch vcpu hotplugging to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix domain list build/cleanup code with xend subdirectory.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:57:45 +0000 (16:57 +0000)]
Fix domain list build/cleanup code with xend subdirectory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoIntroduceDomain of dom0 can fail when it's already connected.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:56:02 +0000 (16:56 +0000)]
IntroduceDomain of dom0 can fail when it's already connected.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix error handling code paths.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:55:21 +0000 (16:55 +0000)]
Fix error handling code paths.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:48:19 +0000 (15:48 +0000)]
merge?

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:46:49 +0000 (15:46 +0000)]
merge?

20 years agoFix imports.
emellor@ewan [Tue, 13 Sep 2005 15:44:48 +0000 (16:44 +0100)]
Fix imports.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:33:37 +0000 (15:33 +0000)]
merge?

20 years agoStore dom0 store ring-ref in store.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:32:38 +0000 (15:32 +0000)]
Store dom0 store ring-ref in store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch to IntroduceDomain, move xend info into xend subdirectory in store.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:21:53 +0000 (15:21 +0000)]
Switch to IntroduceDomain, move xend info into xend subdirectory in store.
Also switch store/console event channel and page reference store
entries over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existan...
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:19:39 +0000 (15:19 +0000)]
Move xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existant directories and fix Remove.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:05:49 +0000 (15:05 +0000)]
merge?

20 years agoFix the check that the argument count is even, for xenstore_write.
emellor@ewan [Tue, 13 Sep 2005 14:46:20 +0000 (15:46 +0100)]
Fix the check that the argument count is even, for xenstore_write.

20 years agoChange read and list to return None if key/dir doesn't exist.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 14:45:34 +0000 (14:45 +0000)]
Change read and list to return None if key/dir doesn't exist.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdded help line for dev-docs target.
emellor@ewan [Tue, 13 Sep 2005 14:42:34 +0000 (15:42 +0100)]
Added help line for dev-docs target.

20 years agoAdded isDevControllerClass so that XendDomainInfo does not need to store the same...
ewan@linford.intra [Tue, 13 Sep 2005 13:49:37 +0000 (14:49 +0100)]
Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally.  This may soon go, depending on how useful controller.py turns out to be.

20 years agoRemoved {add,get}_{config,device}_handler in favour of using a simple dictionary...
ewan@linford.intra [Tue, 13 Sep 2005 13:48:22 +0000 (14:48 +0100)]
Removed {add,get}_{config,device}_handler in favour of using a simple dictionary directly.  Fix a misnamed variable blconfig that was supposed to refer to blcfg.  This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored.

20 years agoAdded .PHONY target so that make works from the tools/python directory (it was seeing...
ewan@linford.intra [Tue, 13 Sep 2005 13:43:18 +0000 (14:43 +0100)]
Added .PHONY target so that make works from the tools/python directory (it was seeing the build directory and therefore doing nothing).

20 years agoPass the root directory to Doxyfilter and thence pythfilter.py so that the latter...
ewan@linford.intra [Tue, 13 Sep 2005 13:42:21 +0000 (14:42 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.

20 years agoPass the root directory to Doxyfilter and thence pythfilter.py so that the latter...
ewan@linford.intra [Tue, 13 Sep 2005 13:41:05 +0000 (14:41 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.

20 years agoThis trivial patch makes sure that mem-map.sxp and the qemu bits
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:49:04 +0000 (10:49 +0000)]
This trivial patch makes sure that mem-map.sxp and the qemu bits
get installed in /usr/lib64 on distributions that want things
there.

Signed-off-by: Rik van Riel <riel@redhat.com>
20 years agoUpdate ignores list for new xenstore binaries.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:42:15 +0000 (10:42 +0000)]
Update ignores list for new xenstore binaries.

20 years agosynch_bitops.h is an arch-specific header file.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:40:29 +0000 (10:40 +0000)]
synch_bitops.h is an arch-specific header file.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNewer binutils is a bit stricter and errors out when you try
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:21:22 +0000 (10:21 +0000)]
Newer binutils is a bit stricter and errors out when you try
to use movl on a 16 bit word on x86_64.  Using just a "mov"
compiles fine and should result in the same code.

{standard input}: Assembler messages:
{standard input}:2138: Error: suffix or operands invalid for `mov'
{standard input}:2140: Error: suffix or operands invalid for `mov'
{standard input}:2142: Error: suffix or operands invalid for `mov'
{standard input}:2144: Error: suffix or operands invalid for `mov'

Signed-off-by: Rik van Riel <riel@redhat.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:14:20 +0000 (10:14 +0000)]
merge?

20 years agoFixed consoled race condition.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:13:52 +0000 (10:13 +0000)]
Fixed consoled race condition.
Signed-off by: Andy Peace <andrew.peace@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agodomain_crash_synchronous() on x86_64 causes Xen to crash because
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:12:40 +0000 (10:12 +0000)]
domain_crash_synchronous() on x86_64 causes Xen to crash because
it tries to dereference an invalid stack address. The patch below
fixes this. The patch also updates show_registers() to print the
same information as its x86_32 equivalent.

Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPrevent opening the xenbus device if the store isn't connected yet.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:05:49 +0000 (10:05 +0000)]
Prevent opening the xenbus device if the store isn't connected yet.
Running xenstore clients using the xenbus device before the store
connection has been set up causes a crash because the store page
won't have been allocated yet.  This is only a problem in dom0 where
we setup the store page from the PRIVCMD_INITDOMAIN_STORE ioctl.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:11:58 +0000 (09:11 +0000)]
merge?

20 years agoFix a bug in shadow_remove_all_access_in_page.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:09:59 +0000 (09:09 +0000)]
Fix a bug in shadow_remove_all_access_in_page.

Fixes a fairly obvious bug, in which an if statement was reversed.  The
bug has been present for a while, so apparently this code isn't well
tested.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
20 years agoFix up testsuite from recent changes.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:09:13 +0000 (09:09 +0000)]
Fix up testsuite from recent changes.

(1) Make TESTDIR relative (my directory exceeded 108 chars, breaking sockets)
(2) Make TESTDIR if it doesn't exist
(3) Add dummy xc_domain_getinfo and xc_evtchn_bind_virq for fake libxc
(4) Fix tests broken by b594bb976a743d509f1ffabb5bc698874ab90d8f
(5) domain_cleanup() can be static, as it's not used elsewhere.
(6) With -Werror, "use" unused variable in domain_init() if TESTING
(7) Remove debugging printf on watch without perms.
(8) Loosen timeout in xs_test (valgrind + slow machine == bogus timeouts)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoPut xenstored.h in linux-public include dir.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 08:35:41 +0000 (08:35 +0000)]
Put xenstored.h in linux-public include dir.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways allow overriding where clients connect through XENSTORED_PATH.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 21:42:26 +0000 (21:42 +0000)]
Always allow overriding where clients connect through XENSTORED_PATH.
Detect if we're connecting to a socket or to the domain device and
open accordingly.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoChange xenbus_dev interface from ioctl to read/write.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 21:12:16 +0000 (21:12 +0000)]
Change xenbus_dev interface from ioctl to read/write.
Check boundaries so we can recover if userspace dies.
Also simplifies libxenstore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd xenstore-list and xenstore-exists clients
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:46:37 +0000 (20:46 +0000)]
Add xenstore-list and xenstore-exists clients
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoCheck the return value of chdir(2) and write(2).
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:24:58 +0000 (20:24 +0000)]
Check the return value of chdir(2) and write(2).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:00:41 +0000 (20:00 +0000)]
merge?

20 years agoSwitch vtpm device setup/teardown over to xstransact.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:59:40 +0000 (19:59 +0000)]
Switch vtpm device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch block device setup/teardown over to xstransact.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:55:57 +0000 (19:55 +0000)]
Switch block device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove debug output.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:49:59 +0000 (19:49 +0000)]
Remove debug output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove block device bind/unbind into hotplug scripts.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:49:03 +0000 (19:49 +0000)]
Move block device bind/unbind into hotplug scripts.
Fixes file: devices since unbind now runs after the backend driver
closes the loopback device.
Also moves name -> node translation into the backend domain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't remove backend store directory before device_unregister.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:46:30 +0000 (19:46 +0000)]
Don't remove backend store directory before device_unregister.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoExport backend device store path to hotplug script.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:45:54 +0000 (19:45 +0000)]
Export backend device store path to hotplug script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoThis patch remove the L2 pin for 1:1 page table on control panel.
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 17:48:07 +0000 (17:48 +0000)]
This patch remove the L2 pin for 1:1 page table on control panel.
L2 pin for 1:1 page table on control panel cause entries for top 64M
address changed by alloc_l2_table().

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoThe last vnet patch was missing some files that had been added
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 14:11:59 +0000 (14:11 +0000)]
The last vnet patch was missing some files that had been added
to my tree but did not appear in 'hg diff'. This patch adds them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
20 years agoRe-indent xc_linux_restore, and add code to force PAE
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:48:33 +0000 (12:48 +0000)]
Re-indent xc_linux_restore, and add code to force PAE
root pgdirs below 4GB on restore.

Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:32:20 +0000 (12:32 +0000)]
merge?

20 years agoAlways fire watches, even on the connection which caused the watch to fire.
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:31:41 +0000 (12:31 +0000)]
Always fire watches, even on the connection which caused the watch to fire.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoXen_version hypercalls takes two args, not one.
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:29:40 +0000 (12:29 +0000)]
Xen_version hypercalls takes two args, not one.

Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomlock argument to version hypercall in libxc.
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:17:31 +0000 (12:17 +0000)]
mlock argument to version hypercall in libxc.

Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoImprove debug tracing from HYPERVISOR_memory_op().
kaf24@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 12:10:43 +0000 (12:10 +0000)]
Improve debug tracing from HYPERVISOR_memory_op().

Signed-off-by: Ian Pratt <ian@xensource.com>
20 years agoremoving XEN_LOCALVERSION for a smaller alternative
vh249@arcadians.cl.cam.ac.uk [Mon, 12 Sep 2005 10:54:30 +0000 (10:54 +0000)]
removing XEN_LOCALVERSION for a smaller alternative

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years ago"Added."
ewan@linford.intra [Sun, 11 Sep 2005 20:40:15 +0000 (21:40 +0100)]
"Added."

20 years agoAdded dev-docs target to build the Python Tools' API documentation.
ewan@linford.intra [Sun, 11 Sep 2005 20:12:40 +0000 (21:12 +0100)]
Added dev-docs target to build the Python Tools' API documentation.

20 years agoAdded docs/api.
ewan@linford.intra [Sun, 11 Sep 2005 20:11:47 +0000 (21:11 +0100)]
Added docs/api.

20 years agoAdded dev-docs target, which passes through to the docs Makefile.
ewan@linford.intra [Sun, 11 Sep 2005 20:10:38 +0000 (21:10 +0100)]
Added dev-docs target, which passes through to the docs Makefile.

20 years agoRe-indent vmx code.
kaf24@firebug.cl.cam.ac.uk [Sun, 11 Sep 2005 16:44:23 +0000 (16:44 +0000)]
Re-indent vmx code.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoYes, that fixes the problem, our patches crossed. I saw Keir already
kaf24@firebug.cl.cam.ac.uk [Sun, 11 Sep 2005 16:36:24 +0000 (16:36 +0000)]
Yes, that fixes the problem, our patches crossed. I saw Keir already
integrated my patch and while it is harmless, it is redundant and
here is the diff to take it out.

The patch also addresses some indent problems and aligns instructions
up with the rest of the block.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoadd XEN_LOCALVERSION to the dist building process
vh249@arcadians.cl.cam.ac.uk [Sun, 11 Sep 2005 16:34:38 +0000 (16:34 +0000)]
add XEN_LOCALVERSION to the dist building process

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoAn FC4/i386 install inside VMX on an x86_64 system fails because byte
kaf24@firebug.cl.cam.ac.uk [Sun, 11 Sep 2005 09:28:21 +0000 (09:28 +0000)]
An FC4/i386 install inside VMX on an x86_64 system fails because byte
size is not handled by __set_reg_value. This patch adds that support.

This patch also reindents Chengyuan Li cmpb patch so that is aligns
with the rest of the code in that block.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoRestore NULL checks before calling kfree().
cl349@firebug.cl.cam.ac.uk [Sat, 10 Sep 2005 20:14:50 +0000 (20:14 +0000)]
Restore NULL checks before calling kfree().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoadd a simple usage string to xenconsoled
vh249@arcadians.cl.cam.ac.uk [Sat, 10 Sep 2005 14:44:31 +0000 (14:44 +0000)]
add a simple usage string to xenconsoled

Signed-off-by: Vincent Hanquez <vincent@xensource.com>